/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ourMessage;

/**
 * the Bye class for when a user leaves the the program
 *
 * @author olga
 * @author adrian
 */
public class Bye extends Message {

    private static final long serialVersionUID = 4849L;
    private String login;

    public Bye(String login) {
        super(login);
        this.login = login;
    }

    @Override
    public String toString() {
        return "Bye from " + getLogin();
    }

    /**
     * @return the login of the leaving user
     */
    public String getLogin() {
        return login;
    }

}
